FIND HF algorithm